890dd84637a41fa5629f965be004fc59dc93bcda,src/main/java/mil/nga/geopackage/tiles/TileGenerator.java,TileGenerator,updateTileBounds,#TileMatrixSet#,531
Before Change
Contents contents = tileMatrixSet.getContents();
ProjectionTransform transformContentsToWgs84 = ProjectionFactory
.getProjection(contents.getSrs().getOrganizationCoordsysId())
.getTransformation(
ProjectionConstants.EPSG_WORLD_GEODETIC_SYSTEM);
// Combine the existing content and request bounding boxes
BoundingBox contentsBoundingBox = transformContentsToWgs84
.transform(contents.getBoundingBox());
boundingBox = TileBoundingBoxUtils.union(contentsBoundingBox,
boundingBox);
// Update the contents if modified
if (!contentsBoundingBox.equals(boundingBox)) {
ProjectionTransform transformContentsToProjection = ProjectionFactory
.getProjection(
ProjectionConstants.EPSG_WORLD_GEODETIC_SYSTEM)
.getTransformation(
contents.getSrs().getOrganizationCoordsysId());
contents.setBoundingBox(transformContentsToProjection
.transform(boundingBox));
ContentsDao contentsDao = geoPackage.getContentsDao();
After Change
Contents contents = tileMatrixSet.getContents();
ProjectionTransform transformContentsToWgs84 = ProjectionFactory
.getProjection(contents.getSrs())
.getTransformation(
ProjectionConstants.EPSG_WORLD_GEODETIC_SYSTEM);
// Combine the existing content and request bounding boxes
BoundingBox contentsBoundingBox = transformContentsToWgs84
.transform(contents.getBoundingBox());
boundingBox = TileBoundingBoxUtils.union(contentsBoundingBox,
boundingBox);
// Update the contents if modified
if (!contentsBoundingBox.equals(boundingBox)) {
ProjectionTransform transformContentsToProjection = ProjectionFactory
.getProjection(
ProjectionConstants.EPSG_WORLD_GEODETIC_SYSTEM)
.getTransformation(
contents.getSrs());
contents.setBoundingBox(transformContentsToProjection
.transform(boundingBox));
ContentsDao contentsDao = geoPackage.getContentsDao();